//
//  BaseCCell.m
//  Tripvi
//
//  Created by xiaowuxiaowu on 2017/5/20.
//  Copyright © 2017年 xiaowuxiaowu. All rights reserved.
//

#import "BaseCCell.h"

@implementation BaseCCell


-(UIImageView *)image_view{
    if(!_image_view){
        
        _image_view = [[UIImageView alloc]init];
        _image_view.clipsToBounds = YES;
        [self.contentView addSubview:_image_view];
    }
    
    return _image_view;
}

-(UILabel *)title_label{
    if(!_title_label){
        
        _title_label = [UILabel initWithFrame:CGRectZero font:fontSystemOfSize(16.0) color:TPBlack_333333 aligment:NSTextAlignmentLeft];
        [self.contentView addSubview:_title_label];
    }
    
    return _title_label;
}
-(UILabel *)detail_label{
    if(!_detail_label){
        _detail_label = [[UILabel alloc]init];
        _detail_label.font = fontSystemOfSize(15.0f);
        _detail_label.textColor = TPBlack_999999;
        _detail_label.textAlignment = NSTextAlignmentLeft;
        //        _detail_label = [UILabel initWithFrame:CGRectZero font:fontSystemOfSize(15.0) color://UNBlack_999999 aligment:NSTextAlignmentLeft];
        [self.contentView addSubview:_detail_label];
    }
    
    return _detail_label;
}

-(UIButton *)titleButton{
    
    if(!_titleButton){
        
        _titleButton = [UIButton buttonWithFrame:CGRectZero title:@"" font:fontSystemOfSize(13.0) color:TPBlack_666666];
        [self.contentView addSubview:_titleButton];
        [_titleButton mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.mas_equalTo(0.0f);
            make.left.mas_equalTo(0.0f);
            make.right.mas_equalTo(-0.0f);
        }];
    }
    return _titleButton;
}
-(UILabel *)date_label{
    if(!_date_label){
        
        _date_label = [UILabel initWithFrame:CGRectZero font:fontSystemOfSize(14.0) color:TPBlack_999999 aligment:NSTextAlignmentLeft];
        [self.contentView addSubview:_date_label];
    }
    
    return _date_label;
}
-(UILabel *)price_label{
    if(!_price_label){
        
        _price_label = [UILabel initWithFrame:CGRectZero font:fontSystemOfSize(14.0) color:TPBlack_999999 aligment:NSTextAlignmentLeft];
        [self.contentView addSubview:_price_label];
    }
    
    return _price_label;
}
@end
